package Main;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.media.opengl.GL;
import javax.swing.JOptionPane;

import com.sun.opengl.util.texture.Texture;
import com.sun.opengl.util.texture.TextureIO;


public class Map {
	public int[][] m_ArrayMap;
	public ItemGame
					m_Land_Nomal,
					m_Land_Nomal_Hight,
					m_Land_Nomal_Low,
					m_Land_Net,
					m_Land_Finish,
					m_Land_Trans_1,
					m_Land_Trans_2,
					m_Land_Trans1_1,
					m_Land_Trans1_2,
					m_Land_Hor,
					m_Land_Bri;
	public int PosXCube,PosYCube;
	public Boolean m_TestEnd=false;
	public Map()
	{
		m_ArrayMap=InitLevel1();
		Init();
	}
	public Map(int _level)
	{
		Init();
		if(_level==1)
		{
			
			m_ArrayMap=InitLevel1();
		}
		if(_level==2)
		{
			m_ArrayMap=InitLevel2();
		}
		if(_level==3)
		{
			m_ArrayMap=InitLevel3();
		}
		if(_level==4)
		{
			m_ArrayMap=InitLevel4();
		}
		if(_level==5)
		{
			m_ArrayMap=InitLevel5();
		}
		if(_level==6)
		{
			m_ArrayMap=InitLevel6();
		}
		if(_level==7)
		{
			m_ArrayMap=InitLevel7();
		}
//		if(_level==8)
//		{
//			m_ArrayMap=InitLevel8();
//		}
//		if(_level==9)
//		{
//			m_ArrayMap=InitLevel9();
//		}
//		if(_level==10)
//		{
//			m_ArrayMap=InitLevel10();
//		}
	}
	public void Init()
	{
		m_TestEnd=false;
		m_Land_Nomal=new ItemGame(1,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_NORMAL);
		m_Land_Nomal_Hight=new ItemGame(6,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_NORMAL);
		m_Land_Nomal_Low=new ItemGame(7,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_NORMAL);
		m_Land_Net=new ItemGame(4,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_NET);
		m_Land_Finish=new ItemGame(5,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_FINISH);
		m_Land_Trans_1=new ItemGame(9,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_TRANS);
		m_Land_Trans_2=new ItemGame(91,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_TRANS);
		m_Land_Trans1_1=new ItemGame(92,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_TRANS1);
		m_Land_Trans1_2=new ItemGame(93,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_TRANS1);
		m_Land_Hor=new ItemGame(2,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_HOR);
		m_Land_Bri=new ItemGame(3,new Point3D(0,0,0),new Point3D(1,1,1),new Point3D(0,0,0),0,DefineCons.LAND_BRI);
		
	}

	public void DrawItem(ItemGame _Item,GL gl)
	{
		_Item.m_Tex.bind();
		gl.glPushMatrix();
		gl.glTranslatef(_Item.m_trans.X, _Item.m_trans.Y, _Item.m_trans.Z);
		gl.glRotatef(_Item.m_rotation, _Item.m_RoXYZ.X, _Item.m_RoXYZ.Y, _Item.m_RoXYZ.Z);
		gl.glScalef(_Item.m_scale.X, _Item.m_scale.Y, _Item.m_scale.Z);
		gl.glBegin(GL.GL_QUADS);
		for(int i=0;i<14;i++)
			for(int j=0;j<19;j++)
			{
				if(m_ArrayMap[i][j]==_Item.ID)
				{
					
					gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(1.0f+j, 1.0f+i, 0);
			        gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(0.0f+j, 1.0f+i, 0);
			        gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(0.0f+j, 0.0f+i, 0);
			        gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(1.0f+j, 0.0f+i, 0);   
				}
			}		
        gl.glEnd();
        gl.glPopMatrix();
	}
	public void FindItem(ItemGame _Item)
	{
		for(int i=0;i<14;i++)
			for(int j=0;j<19;j++)
			{
				if(m_ArrayMap[i][j]==_Item.ID)
				{
					_Item.PosXMatrix=j;
					_Item.PosYMatrix=i;
				}
			}		
	}
	public void DrawMap(GL gl)
	{
		DrawItem(m_Land_Nomal,gl);
		DrawItem(m_Land_Nomal_Hight,gl);
		DrawItem(m_Land_Nomal_Low,gl);
		DrawItem(m_Land_Net,gl);
		DrawItem(m_Land_Finish,gl);
		DrawItem(m_Land_Trans_1,gl);
		DrawItem(m_Land_Trans_2,gl);
		DrawItem(m_Land_Trans1_1,gl);
		DrawItem(m_Land_Trans1_2,gl);
		DrawItem(m_Land_Hor,gl);
		DrawItem(m_Land_Bri,gl);
	}
	
	
	
	
	
	
	
	
	
	
	
	
	public int[][] InitLevel1()
	{

		m_Land_Net.m_trans.Z=-3;
		m_Land_Nomal_Hight.m_trans.Z=1;
		m_Land_Nomal_Hight.m_trans.Z=-1;
		PosXCube=3;
		PosYCube=5;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
			};  
		return araymap;
	
	}
	public int[][] InitLevel2()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=2;
		PosYCube=5;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 3, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
			};
		return araymap;
	}
	public int[][] InitLevel3()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=2;
		PosYCube=5;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 1, 1, 9, 1, 0, 0,91, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1,92, 0, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 5, 1, 0, 0},
				{0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,93, 1, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
			};
		return araymap;
	}
	public int[][] InitLevel4()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=3;
		PosYCube=4;
		int[][] araymap={ 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 1, 1, 9, 0, 0,91, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 3, 1, 1, 4, 4, 1, 1, 0, 0, 0, 1, 1, 1, 5, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
			};
		return araymap;
	}
	public int[][] InitLevel5()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=3;
		PosYCube=4;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 1, 1, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
			};
		return araymap;
	}
	public int[][] InitLevel6()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=3;
		PosYCube=3;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1,92, 0, 0},
				{0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1,93, 0, 0},
				{0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 3, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 1, 5, 1, 1, 4, 4, 4, 1, 1, 1, 1, 1, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
			};
		return araymap;
	}
	public int[][] InitLevel7()
	{
		m_Land_Net.m_trans.Z=-3;
		PosXCube=11;
		PosYCube=3;
		int[][] araymap = { 
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0},
				{0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0},
				{0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0},
				{0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 5, 0, 1, 1, 0, 1, 0, 0},
				{0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
			};
		return araymap;
	}
//	public int[][] InitLevel8()
//	{
//		m_Land_Net.m_trans.Z=-3;
//		PosXCube=2;
//		PosYCube=5;
//		int[][] araymap = { 
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0},
//				{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 5, 1, 0, 0},
//				{0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 3, 0, 0, 1, 1, 1, 0, 0},
//				{0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0},
//				{0, 0, 0, 1, 1, 4, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
//			};
//		return araymap;
//	}
//	public int[][] InitLevel9()
//	{
//		m_Land_Net.m_trans.Z=-3;
//		PosXCube=2;
//		PosYCube=3;
//		int[][] araymap = { 
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 1, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 5, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0},
//				{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//			};
//		return araymap;
//	}
//	public int[][] InitLevel10()
//	{
//		m_Land_Net.m_trans.Z=-3;
//		PosXCube=2;
//		PosYCube=8;
//		int[][] araymap = { 
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 1, 5, 1, 4, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0},
//				{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0},
//				{0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0},
//				{0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//				{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
//			};
//		return araymap;
//	}
	
}
